#!/bin/bash

FILE_BASE="https://gitee.com/wellxf/cns/raw/master/guestbook-go"
ALL_FILE="$FILE_BASE/redis-slave-controller.yaml \
$FILE_BASE/redis-slave-service.yaml \
$FILE_BASE/redis-master-controller.yaml \
$FILE_BASE/redis-master-service.yaml \
$FILE_BASE/guestbook-controller.yaml \
$FILE_BASE/guestbook-service.yaml "

for SINGLE_FILE in $ALL_FILE
do
    kubectl apply -f $SINGLE_FILE    
done
